package com.example.demo.edu;

import java.util.stream.Stream; //OK
import java.util.ArrayList;
import java.util.List;
import java.util.stream.*; //NG

public class Test {

    private int i = 0; // OK
    /**
     *
     */
    public int j = 0; // NG
    public final static String CON = "常量";

    public int getI() {
        String sex = "";
//    	if ("1".equals(sex)) {//NG
        if (Constanse.SEX_M.equals(sex)) {// OK

        } else {

        }
        return i;
    }

    public String getStr() {
        String str = "123"; // NG
        str += "456"; // NG
        StringBuilder sb = new StringBuilder(256);
        sb.append("123");
        sb.append("456");
        return sb.toString();
    }

    public List<String> getList() {
        return new ArrayList<>();
    }

    public void setList(List<String> list) {

    }

    public String getStr2() {
        return null;
    }
}
